package top.infopub.mgr.mkt.service;

import com.github.pagehelper.Page;
import top.infopub.generic.GenericService;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.mgr.mkt.domain.BidCurrencyDomain;
import top.infopub.mgr.mkt.jsonvo.BidDecisionJsonVo;
import top.infopub.mgr.mkt.vo.BidCurrencyVo;
import top.infopub.model.mkt.*;
import top.infopub.security.vo.AuthorizationVO;

import java.text.ParseException;
import java.util.List;

public interface BidDecisionService extends GenericService<BidDecision, String> {
    Page<BidCurrencyDomain> selectPage(Page<BidCurrencyDomain> page, BidCurrencyVo bidCurrencyVo) throws ParseException;

    /**
     * 详情查询
     * @param id
     * @return
     */
    BidDecisionJsonVo queryDetailById(String id);

    /**
     * 编辑投标决策详情
     * @param proInfo
     * @param bidDecision
     * @param bidInfo
     * @param attachmentList
     * @param vo
     * @return
     */
    RspVo editDetail(ProjectInfo proInfo, BidDecision bidDecision, BidInfo bidInfo,
                     List<ProjectAttachment> attachmentList, AuthorizationVO vo,
                     Integer submitType);

    void insertRiskTable(List<ProjectRisk> riskTable);
}
